#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include "common/common.h"
#include "database/usersdb.h"

namespace Ui {
class Login;
}

class Login : public QWidget
{
    Q_OBJECT

public:
    explicit Login(QWidget *parent = 0);
    ~Login();

public slots:
    void loginShow();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_comboBox_currentTextChanged(const QString &name);

    void on_comboBox_currentIndexChanged(const QString &username);

signals:
    void createNewPlayer(const QString &username);
    void enterGame();

private:
    Ui::Login *ui;
};

#endif // LOGIN_H
